Make it obvious that the functions checks one condition and then the
other.
gtk_drop_target_accept (GtkDropTarget *dest,
GdkDrop *drop)
{
- GdkDragAction dest_actions;
- GdkDragAction actions;
-
- dest_actions = gtk_drop_target_get_actions (dest);
-
- actions = dest_actions & gdk_drop_get_actions (drop);
+ if ((gdk_drop_get_actions (drop) & gtk_drop_target_get_actions (dest)) == 0)
+ return FALSE;
- return actions && gdk_content_formats_match (dest->formats, gdk_drop_get_formats (drop));
+ return gdk_content_formats_match (dest->formats, gdk_drop_get_formats (drop));
}
static void